<?php

namespace app\admin\controller;

use app\common\AdminController;
use app\admin\model\Weblog as WeblogDB;

class Weblog extends AdminController
{

  protected function initialize()
  {
    $this->model = new WeblogDB();
  }
  public function list(array $rule = [], array $field = [], array $association = [], array $hidden = [])
  {
    $rule = [
      "logType" => [
        "mode" => "=",
        "field" => "log_type",
      ],
      "ipaddress" => [
        "mode" => "=",
        "field" => "ipaddress",
      ],
      "createTime" => [
        "mode" => "between",
        "field" => "create_time",
      ],
    ];
    return parent::list($rule);
  }
}
